package com.testpro.DesignPattern.SingletonPattern;

public class Test {

    public static void main(String[] args) {

        //单例模式运用思想  每个人就一个父亲 无论谁来问我
        Father instance = Father.getInstance();

        Father instance1= Father.getInstance();

        System.out.println(instance==instance1);

    }
}
